import * as Counter from "../constants/counter";

export type AddAction = {
  type: Counter.ADD;
};

export type MinusAction = {
  type: Counter.MINUS;
};

export const add = (): AddAction => {
  return {
    type: Counter.ADD
  };
};
export const minus = (): MinusAction => {
  return {
    type: Counter.MINUS
  };
};

export type CounterAction = MinusAction | AddAction;


